export default [
    // 首页
    {
        path: '/',
        component: resolve => { require(['@/App.vue'], resolve) },
        redirect: {
            name: 'index'
        },
        children: [
        {
            path: 'index',
            name: 'index',
            meta: {
                keepAlive: true
            },
            component: resolve => { require(['@/pages/index/index.vue'], resolve) }
        }]
    },
    // 登陆
    {
        path: '/login',
        name: 'login',
        component: resolve => { require(['@/pages/login/login.vue'], resolve) }
    }
]